#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QMessageBox>
#include "digitalkeyboard.h"

class LoginDialog : public QDialog
{
    Q_OBJECT
public:
    explicit LoginDialog(QWidget *parent = nullptr);

private slots:
    void attemptLogin();
    void exitApplication();

private:
    QLabel *titleLabel;
    QLabel *tenantLabel;
    QLabel *usernameLabel;
    QLabel *passwordLabel;
    QLineEdit *tenantEdit;
    QLineEdit *usernameEdit;
    QLineEdit *passwordEdit;
    QPushButton *loginButton;
    QPushButton *exitButton;
    DigitalKeyboard *keyboard;

    void setupUI();
    void setupConnections();
    void applyStyles();

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;

signals:
};

#endif // LOGINDIALOG_H
